/**
 * Created by liuqingling on 16/3/28.
 */

var ursa = require('ursa');




var server_public  ='-----BEGIN PUBLIC KEY-----\n'+
'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7AN0WzhyXReCsXwThTylGkV7Z\n'+
'pZ5H0VvGLJ1+5uA2vIEfS+BOnJOsjUmO+yQgKWCsPwJQtwDJ9BdSmlLb0Bldjq5q\n'+
'6NiScfP9wQLwjyDDbjsPiS411jznZKdJvxNHgERczlIg/Kcxpj3uBJOSQ2+uV+8l\n'+
'/T/1sMFe9RNYfh2sOwIDAQAB\n'+
'-----END PUBLIC KEY-----';


var server_private  =  '-----BEGIN PRIVATE KEY-----\n'+
'MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBALsA3RbOHJdF4Kxf\n'+
'BOFPKUaRXtmlnkfRW8YsnX7m4Da8gR9L4E6ck6yNSY77JCApYKw/AlC3AMn0F1Ka\n'+
'UtvQGV2Ormro2JJx8/3BAvCPIMNuOw+JLjXWPOdkp0m/E0eARFzOUiD8pzGmPe4E\n'+
'k5JDb65X7yX9P/WwwV71E1h+Haw7AgMBAAECgYAWkUsdJnCS3O75PlpTan87se11\n'+
'bKRGXICr0NSM7QXf9S3L/hcqxYCY0VAwPiSk8PlmsA/yd7NTq+5onJElT97Pk8HA\n'+
'JXUbLyyjM7MSRxFoPIPwmv/hdTS+pgjbqFD8cX8rxTpyA4hGVD5EbSr0opOktvsk\n'+
'7mk4yu0pr2D+n0+AgQJBAOKjj0Eq5VbLnJ7AHG2Zs/kyG+z7caaKcsGKke+88BTN\n'+
'YvglVPb4a12DD9EbHPcfKYF6sBzogWtuaYp9lkppvEECQQDTOsxnIMoAdbHhrXuI\n'+
'47AzOYhHeZsC3E/4nM8Ttd4nJeKNDFsv+oVFortkI9JfLRlCDSTfhwdhITio7737\n'+
'9fl7AkEAo+ky5CjH8PwVa+L5LHMrbKDG/Z/k1FPxJvS3EzIMWJ8qYtltF6kWzWzK\n'+
'dassSbXp6ND4qg+l+jLCdfzaQzsxgQJBAJcGsWMDFKsje53KNkt30GGvvvqrveNb\n'+
'tmohZAXJwR7ofYUv0nsJegSCB83ftuiKDEcnsreHigUuhZ50W7gs9MUCQQDYLg7E\n'+
'mbEXjR8t/EVno7B0mRFn7XRp3aSaSA6nIh4HG2utPpkwjE+ZuR5EQ4BMw5NL1VXt\n'+
'DHbcvhMaINYZQAhW\n'+
'-----END PRIVATE KEY-----';

var server = {
    pem :ursa.createPrivateKey(server_private),
    pub :ursa.createPublicKey(server_public)
};

//var client = {
//    pub :ursa.createPublicKey(client_public),
//    pem :ursa.createPrivateKey(client_private)
//};
exports.pem=server;